Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Judy Asakigenader 8.Oct.03 12:56 AM a Web browser
Domino Designer All Releases All Platforms


Here's the scenario:

I have a form with a button that opens a DialogBox to another form. This code works fine when I open this form directly from it's own database. However, I need to create this form from a separate database. When I create the form from the other database, the button no longer works, I get the error "DialogBox cannot be used in this context; a document must be selected." The "doc" I am giving it definitely has a value, and all other functions seem to work fine. Any ideas?

I tried adding some ideas that I already saw in this forum, but to no avail.

Dim ws As New NotesUIWorkspace
Dim continue As Variant
Dim uidoc As notesuidocument
Set uidoc=ws.currentdocument
Dim doc As notesdocument
Set doc = uidoc.document

continue = ws.Dialogbox("PreAuthorizationCapture", True, True, False,False,False,False, "Pre-Authorization Wizard")
If Not continue Then
Exit Sub
End If






DialogBox cannot be used in this co... (~Judy Asakigena... 8.Oct.03)
. . RE: DialogBox cannot be used in thi... (~Dan Brefreepul... 8.Oct.03)
. . RE: DialogBox cannot be used in thi... (~Patti Chufooli... 8.Oct.03)
. . . . RE: DialogBox cannot be used in thi... (~Judy Asakigena... 8.Oct.03)
. . . . . . RE: DialogBox cannot be used in thi... (~Patti Chufooli... 8.Oct.03)
. . . . . . . . RE: DialogBox cannot be used in thi... (~Judy Asakigena... 8.Oct.03)
. . . . . . . . . . RE: DialogBox cannot be used in thi... (~Bill Frokimari... 9.Oct.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS